# -*- coding:utf-8 -*-
__author__ = 'Serprutiy'

import re


text = """/********************************************************************************
** Form generated from reading UI file 'ImProfile.ui'
**
** Created by: Qt User Interface Compiler version 5.3.1
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/

#ifndef UI_IMPROFILE_H
#define UI_IMPROFILE_H

#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
#include "gxx\uibase\cuslineeditor.h"

QT_BEGIN_NAMESPACE

class Ui_ImProfileClass
{
public:
    QHBoxLayout *horizontalLayout;
    QWidget *container;
    QHBoxLayout *horizontalLayout_2;
    QWidget *photo_widget;
    QPushButton *photo_button;
    QLabel *photo_back;
    QWidget *widget_2;
    QVBoxLayout *verticalLayout;
    QWidget *widget_4;
    QVBoxLayout *verticalLayout_2;
    QWidget *name_widget;
    QHBoxLayout *horizontalLayout_4;
    CusLineEditor *name_text;
    QPushButton *status_icon;
    QSpacerItem *horizontalSpacer;
    QWidget *status_widget;
    QHBoxLayout *horizontalLayout_3;
    CusLineEditor *status_text;
    QWidget *icon_widget;
    QHBoxLayout *horizontalLayout_5;
    QLabel *lvl_icon;
    QLabel *lvl_label;
    QLabel *power_icon;
    QLabel *power_label;
    QLabel *shell_icon;
    QLabel *shell_label;

    void setupUi(QWidget *ImProfileClass)
    {
        if (ImProfileClass->objectName().isEmpty())
            ImProfileClass->setObjectName(QStringLiteral("ImProfileClass"));
        ImProfileClass->resize(291, 71);
        horizontalLayout = new QHBoxLayout(ImProfileClass);
        horizontalLayout->setSpacing(5);
        horizontalLayout->setObjectName(QStringLiteral("horizontalLayout"));
        horizontalLayout->setContentsMargins(0, 0, 0, 0);
        container = new QWidget(ImProfileClass);
        container->setObjectName(QStringLiteral("container"));
        QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
        sizePolicy.setHorizontalStretch(0);
        sizePolicy.setVerticalStretch(0);
        sizePolicy.setHeightForWidth(container->sizePolicy().hasHeightForWidth());
        container->setSizePolicy(sizePolicy);
        container->setMinimumSize(QSize(0, 71));
        container->setMouseTracking(true);
        container->setFocusPolicy(Qt::NoFocus);
        container->setStyleSheet(QLatin1String("background-image:none;\n"
"border-image:none;"));
		/*
		container->setStyleSheet(StyleSheetHelper::getStyleSheet("class", "wgt_name"));
		*/
        horizontalLayout_2 = new QHBoxLayout(container);
        horizontalLayout_2->setObjectName(QStringLiteral("horizontalLayout_2"));
        horizontalLayout_2->setContentsMargins(6, 0, 5, 0);
        photo_widget = new QWidget(container);
        photo_widget->setObjectName(QStringLiteral("photo_widget"));
        QSizePolicy sizePolicy1(QSizePolicy::Fixed, QSizePolicy::Fixed);
        sizePolicy1.setHorizontalStretch(0);
        sizePolicy1.setVerticalStretch(0);
        sizePolicy1.setHeightForWidth(photo_widget->sizePolicy().hasHeightForWidth());
        photo_widget->setSizePolicy(sizePolicy1);
        photo_widget->setMinimumSize(QSize(70, 70));
        photo_widget->setMaximumSize(QSize(70, 70));
        photo_widget->setStyleSheet(QStringLiteral(""));
        photo_button = new QPushButton(photo_widget);
        photo_button->setObjectName(QStringLiteral("photo_button"));
        photo_button->setGeometry(QRect(3, 3, 64, 64));
        sizePolicy1.setHeightForWidth(photo_button->sizePolicy().hasHeightForWidth());
        photo_button->setSizePolicy(sizePolicy1);
        photo_button->setMinimumSize(QSize(64, 64));
        photo_button->setMaximumSize(QSize(64, 64));
        photo_button->setCursor(QCursor(Qt::PointingHandCursor));
        photo_button->setCheckable(false);
        photo_back = new QLabel(photo_widget);
        photo_back->setObjectName(QStringLiteral("photo_back"));
        photo_back->setGeometry(QRect(0, 0, 70, 70));
        sizePolicy1.setHeightForWidth(photo_back->sizePolicy().hasHeightForWidth());
        photo_back->setSizePolicy(sizePolicy1);
        photo_back->setMinimumSize(QSize(70, 70));
        photo_back->setMaximumSize(QSize(70, 70));
        photo_back->setContextMenuPolicy(Qt::NoContextMenu);
        photo_back->setLineWidth(0);
        photo_back->setTextInteractionFlags(Qt::NoTextInteraction);
        photo_back->raise();
        photo_button->raise();

        horizontalLayout_2->addWidget(photo_widget);

        widget_2 = new QWidget(container);
        widget_2->setObjectName(QStringLiteral("widget_2"));
        verticalLayout = new QVBoxLayout(widget_2);
        verticalLayout->setSpacing(0);
        verticalLayout->setObjectName(QStringLiteral("verticalLayout"));
        verticalLayout->setContentsMargins(0, 0, 0, 0);
        widget_4 = new QWidget(widget_2);
        widget_4->setObjectName(QStringLiteral("widget_4"));
        QSizePolicy sizePolicy2(QSizePolicy::Expanding, QSizePolicy::Fixed);
        sizePolicy2.setHorizontalStretch(0);
        sizePolicy2.setVerticalStretch(0);
        sizePolicy2.setHeightForWidth(widget_4->sizePolicy().hasHeightForWidth());
        widget_4->setSizePolicy(sizePolicy2);
        widget_4->setMinimumSize(QSize(0, 35));

        widget_4->setStyleSheet(QLatin1String("QLineEdit \n"
"{\n"
"padding-bottom:1px; \n"
"margin:0px; \n"
"border:none;\n"
"background-color:transparent; \n"
"color:white; \n"
"selection-color:white; \n"
"}\n"
"\n"
"QLineEdit:focus \n"
"{\n"
"padding-bottom:1px; \n"
"background-color: rgba(255, 255, 255, 50%); \n"
"color:black; \n"
"border-radius:3px; \n"
"}\n"
"\n"
""));
        verticalLayout_2 = new QVBoxLayout(widget_4);
        verticalLayout_2->setSpacing(0);
        verticalLayout_2->setObjectName(QStringLiteral("verticalLayout_2"));
        verticalLayout_2->setContentsMargins(5, 0, 0, 0);
        name_widget = new QWidget(widget_4);
        name_widget->setObjectName(QStringLiteral("name_widget"));
        sizePolicy2.setHeightForWidth(name_widget->sizePolicy().hasHeightForWidth());
        name_widget->setSizePolicy(sizePolicy2);
        name_widget->setMinimumSize(QSize(0, 16));
        name_widget->setStyleSheet(QStringLiteral(""));
        horizontalLayout_4 = new QHBoxLayout(name_widget);
        horizontalLayout_4->setSpacing(14);
        horizontalLayout_4->setObjectName(QStringLiteral("horizontalLayout_4"));
        horizontalLayout_4->setContentsMargins(0, 0, 0, 2);
        name_text = new CusLineEditor(name_widget);
        name_text->setObjectName(QStringLiteral("name_text"));
        sizePolicy2.setHeightForWidth(name_text->sizePolicy().hasHeightForWidth());
        name_text->setSizePolicy(sizePolicy2);
        name_text->setMinimumSize(QSize(0, 20));
        name_text->setMaximumSize(QSize(120, 20));
        name_text->setStyleSheet(QStringLiteral(""));

        horizontalLayout_4->addWidget(name_text);

        status_icon = new QPushButton(name_widget);
        status_icon->setObjectName(QStringLiteral("status_icon"));
        status_icon->setMinimumSize(QSize(20, 12));
        status_icon->setMaximumSize(QSize(20, 12));
        status_icon->setStyleSheet(QLatin1String("#status_icon\n"
"{\n"
"border-image: url(:/Im/images/icon/icon_statusColor.png) 0 0 36 0; \n"
"}\n"
"\n"
"#status_icon:hover \n"
"{\n"
"border-image: url(:/Im/images/icon/icon_statusColor.png) 12 0 24 0; \n"
"}\n"
"\n"
"#status_icon:pressed \n"
"{\n"
"border-image: url(:/Im/images/icon/icon_statusColor.png) 24 0 12 0; \n"
"}\n"
"\n"
"#status_icon:disabled \n"
"{\n"
"border-image: url(:/Im/images/icon/icon_statusColor.png) 36 0 0 0; \n"
"}"));

        horizontalLayout_4->addWidget(status_icon);

        horizontalSpacer = new QSpacerItem(80, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);

        horizontalLayout_4->addItem(horizontalSpacer);


        verticalLayout_2->addWidget(name_widget);

        status_widget = new QWidget(widget_4);
        status_widget->setObjectName(QStringLiteral("status_widget"));
        sizePolicy2.setHeightForWidth(status_widget->sizePolicy().hasHeightForWidth());
        status_widget->setSizePolicy(sizePolicy2);
        status_widget->setMinimumSize(QSize(0, 16));
        horizontalLayout_3 = new QHBoxLayout(status_widget);
        horizontalLayout_3->setSpacing(0);
        horizontalLayout_3->setObjectName(QStringLiteral("horizontalLayout_3"));
        horizontalLayout_3->setContentsMargins(0, 0, 0, 0);
        status_text = new CusLineEditor(status_widget);
        status_text->setObjectName(QStringLiteral("status_text"));
        status_text->setMinimumSize(QSize(0, 16));
        status_text->setMaximumSize(QSize(16777215, 180));
        status_text->setStyleSheet(QStringLiteral(""));

        horizontalLayout_3->addWidget(status_text);


        verticalLayout_2->addWidget(status_widget);


        verticalLayout->addWidget(widget_4);

        icon_widget = new QWidget(widget_2);
        icon_widget->setObjectName(QStringLiteral("icon_widget"));
        sizePolicy1.setHeightForWidth(icon_widget->sizePolicy().hasHeightForWidth());
        icon_widget->setSizePolicy(sizePolicy1);
        icon_widget->setMinimumSize(QSize(200, 21));
        icon_widget->setMaximumSize(QSize(16777215, 21));
        horizontalLayout_5 = new QHBoxLayout(icon_widget);
        horizontalLayout_5->setSpacing(1);
        horizontalLayout_5->setObjectName(QStringLiteral("horizontalLayout_5"));
        horizontalLayout_5->setContentsMargins(5, 5, 5, 0);
        lvl_icon = new QLabel(icon_widget);
        lvl_icon->setObjectName(QStringLiteral("lvl_icon"));
        sizePolicy1.setHeightForWidth(lvl_icon->sizePolicy().hasHeightForWidth());
        lvl_icon->setSizePolicy(sizePolicy1);
        lvl_icon->setMinimumSize(QSize(20, 21));
        lvl_icon->setMaximumSize(QSize(20, 21));
        lvl_icon->setStyleSheet(QStringLiteral(""));

        horizontalLayout_5->addWidget(lvl_icon);

        lvl_label = new QLabel(icon_widget);
        lvl_label->setObjectName(QStringLiteral("lvl_label"));
        sizePolicy.setHeightForWidth(lvl_label->sizePolicy().hasHeightForWidth());
        lvl_label->setSizePolicy(sizePolicy);
        lvl_label->setMinimumSize(QSize(21, 21));
        lvl_label->setMaximumSize(QSize(21, 21));

        horizontalLayout_5->addWidget(lvl_label);

        power_icon = new QLabel(icon_widget);
        power_icon->setObjectName(QStringLiteral("power_icon"));
        sizePolicy1.setHeightForWidth(power_icon->sizePolicy().hasHeightForWidth());
        power_icon->setSizePolicy(sizePolicy1);
        power_icon->setMinimumSize(QSize(20, 21));
        power_icon->setMaximumSize(QSize(20, 21));
        power_icon->setStyleSheet(QStringLiteral(""));

        horizontalLayout_5->addWidget(power_icon);

        power_label = new QLabel(icon_widget);
        power_label->setObjectName(QStringLiteral("power_label"));
        QSizePolicy sizePolicy3(QSizePolicy::Minimum, QSizePolicy::Fixed);
        sizePolicy3.setHorizontalStretch(0);
        sizePolicy3.setVerticalStretch(0);
        sizePolicy3.setHeightForWidth(power_label->sizePolicy().hasHeightForWidth());
        power_label->setSizePolicy(sizePolicy3);
        power_label->setMinimumSize(QSize(38, 21));
        power_label->setMaximumSize(QSize(16777215, 21));
        power_label->setBaseSize(QSize(0, 0));

        horizontalLayout_5->addWidget(power_label);

        shell_icon = new QLabel(icon_widget);
        shell_icon->setObjectName(QStringLiteral("shell_icon"));
        sizePolicy1.setHeightForWidth(shell_icon->sizePolicy().hasHeightForWidth());
        shell_icon->setSizePolicy(sizePolicy1);
        shell_icon->setMinimumSize(QSize(20, 21));
        shell_icon->setMaximumSize(QSize(20, 21));

        horizontalLayout_5->addWidget(shell_icon);

        shell_label = new QLabel(icon_widget);
        shell_label->setObjectName(QStringLiteral("shell_label"));
        QSizePolicy sizePolicy4(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
        sizePolicy4.setHorizontalStretch(0);
        sizePolicy4.setVerticalStretch(0);
        sizePolicy4.setHeightForWidth(shell_label->sizePolicy().hasHeightForWidth());
        shell_label->setSizePolicy(sizePolicy4);
        shell_label->setMinimumSize(QSize(45, 21));
        shell_label->setMaximumSize(QSize(16777215, 21));

        horizontalLayout_5->addWidget(shell_label);


        verticalLayout->addWidget(icon_widget);


        horizontalLayout_2->addWidget(widget_2);


        horizontalLayout->addWidget(container);


        retranslateUi(ImProfileClass);

        QMetaObject::connectSlotsByName(ImProfileClass);
    } // setupUi

    void retranslateUi(QWidget *ImProfileClass)
    {
        ImProfileClass->setWindowTitle(QApplication::translate("ImProfileClass", "Form", 0));
        photo_button->setText(QString());
        photo_back->setText(QString());
        name_text->setText(QApplication::translate("ImProfileClass", "aa", 0));
        status_icon->setText(QString());
        lvl_icon->setText(QString());c
        lvl_label->setText(QString());
        power_icon->setText(QString());
        power_label->setText(QString());
        shell_icon->setText(QString());
        shell_label->setText(QString());
    } // retranslateUi

};

namespace Ui {
    class ImProfileClass: public Ui_ImProfileClass {};
} // namespace Ui

QT_END_NAMESPACE

#endif // UI_IMPROFILE_H
"""


foreign_key_re = re.compile(r"\w*->setStyleSheet\([\w:\(\)\"\,\s\-\;\\n#\{\}\/\.%]+\);")

l = foreign_key_re.findall(text)
print(len(l))
print(l)